import React from 'react'
import ImgTxt from '../ui-components/imgtxt'
import style from './style'
import Code from './Code'

const path = process.env.NODE_ENV === 'production'? './static/images/test': './static/src/images/test'

export default () => (
	<div className={style.root}>
		<Code>{'<ImgTxt to={..} name={..} title={..} src={..}/>'}</Code>
		<div>
			<ImgTxt 
				to={'#/test'}
				small 
				name="王山前" 
				title="前端工程师" 
				src={`${path}/1.jpg`}/>
		</div>
		<div>
			<ImgTxt 
				to="#/test"
				name="王山前" 
				title="前端工程师" 
				src={`${path}/1.jpg`}/>
		</div>
		<div>
			<ImgTxt 
				big 
				name="王山前" 
				title="前端工程师" 
				src={`${path}/1.jpg`}/>
		</div>
	</div>
)
